﻿// See https://aka.ms/new-console-template for more information
using EFCoreApp;

EF_updlock2 updlock = new EF_updlock2();

updlock.uplockTest();

Console.WriteLine("Hello, World!");


TaskClass.MainTest();

Console.WriteLine("Hello, World!");

EFClass eFClass = new EFClass();

//eFClass.efTest();


Console.WriteLine("Hello, World!");

//EF_updlock updlock = new EF_updlock();

//updlock.uplockTest();

//Console.WriteLine("Hello, World!");



EF_optimistic optimistic = new EF_optimistic();

for (int i = 0; i < 100; i++)
{
    
    Thread t1 = new Thread(async () => {
        await optimistic.optimisticTest("test_" + i);
    }); 
    t1.Start();  
}

 
Console.WriteLine("Hello, World!");